#ifndef CALENDAR_H
#define CALENDAR_H

#endif // CALENDAR_H
#include <QDate>
#include <QMainWindow>
#include <QFile>
#include <QWidget>
QT_BEGIN_NAMESPACE
class QTextBrowser;
class QDateEdit;
class QCalendarWidget;
QT_END_NAMESPACE

class Calendar: public QMainWindow
{
    Q_OBJECT

public:
    Calendar();
public slots:
    void raspisanie(QDate);
    void setCurrDay(QDate);
private:
    void insertDate();
    bool ok;
    QDate selectedDate,firstDate;
    QTextBrowser *editor;
    int cur_week,i;
    QList<QString> tableweek,tableday,tablenum,tablename;
    QCalendarWidget * monthcalendar;
};
